package com.trex.modules.tbl.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 列检作业区对照Entity
 * @author jy
 * @version 2022-09-05
 */
@Table(name="tbl_zd_ljzyqdz", alias="a", label="列检作业区对照信息", columns={
		@Column(name="rec_id", attrName="recId", label="rec_id", isPK=true),
		@Column(name="roleid", attrName="roleid", label="角色ID"),
		@Column(name="role", attrName="role", label="角色"),
		@Column(name="area_code", attrName="areaCode", label="作业区"),
		@Column(name="area", attrName="area", label="作业区"),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志位"),
		@Column(name="user_code", attrName="userCode", label="更新人"),
		@Column(name="user_name", attrName="userName", label="更新人", queryType=QueryType.LIKE),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="IP地址"),
	}, orderBy="a.rec_id DESC"
)
public class TblZdLjzyqdz extends DataEntity<TblZdLjzyqdz> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// rec_id
	private String roleid;		// 角色ID
	private String role;		// 角色
	private String areaCode;		// 作业区
	private String area;		// 作业区
	private String deleFlag;		// 删除标志位
	private String userCode;		// 更新人
	private String userName;		// 更新人
	private Date updTime;		// 更新时间
	private String ip;		// IP地址

	public TblZdLjzyqdz() {
		this(null);
	}
	
	public TblZdLjzyqdz(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
	@Size(min=0, max=50, message="角色ID长度不能超过 50 个字符")
	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}
	
	@Size(min=0, max=50, message="角色长度不能超过 50 个字符")
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}
	
	@Size(min=0, max=10, message="作业区长度不能超过 10 个字符")
	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	
	@Size(min=0, max=20, message="作业区长度不能超过 20 个字符")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Size(min=0, max=1, message="删除标志位长度不能超过 1 个字符")
	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	
	@Size(min=0, max=10, message="更新人长度不能超过 10 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Size(min=0, max=20, message="更新人长度不能超过 20 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
	@Size(min=0, max=15, message="IP地址长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
}